<?php
/**
 * User: wangdong
 * Date: 2020-07-08
 * Time: 15:04
 */

namespace app\api\controller\v1;


use app\api\model\admin\Shop;
use app\api\model\admin\ShopUser;
use app\api\service\UserToken;
use app\api\validate\TokenGet;

class Token
{
    public function getToken($code=''){

        //return $result=ShopUser::limit(100)->select();
       (new TokenGet())->goCheck();
        $ut=new UserToken($code);
        $token=$ut->get();
        return [
            'token'=>$token,
        ];
    }
}